/*
** --------------------------------------------------------------------------
**
** mshAdapt3D.h  -  This header file contains the public  function to obtain
**                  new size of elements in adaptive process.
**
** Author - Antonio Miranda, January - 2008
*/

#ifndef MSH_ADAPT3D_H
#define MSH_ADAPT3D_H

/*
** adaptOut - structure used to obtain results from error analyisis
*/
typedef struct _adapt_out
{
	double average_error;
	double min_error;
	double max_error;

  // boundbox of model
  double max[3];
  double min[3];
} adaptOut;

/*
** Msh3DAdapt - main function
** 
** errorPercetage - error percentage used in analysis
** resFile        - file name with results
** out            - error results
** func           - function to return new sizes of elements
*/  
int Msh3DAdapt (double errorPercentage, char *resFile, adaptOut *out, 
                void (*func) (double x, double y, double z, double new_size));

#endif


